Programming iOS 5 by Matt Neuburg

Programming iOS 5 by Matt Neuburg

Author:Matt Neuburg
Language: eng
Format: mobi, epub
Tags: COMPUTERS / Programming / Apple Programming
ISBN: 9781449327101
Publisher: O'Reilly Media
Published: 2012-03-14T23:00:00+00:00


The navigation bar, containing the TidBITS logo.

Some text, which is actually a UILabel, stating when the list of stories was last updated.

The list of stories, which is actually a UITableView.

I will describe how all of this comes to appear on the screen through the view controller hierarchy and the view hierarchy (Figure 19-2). The app’s root view controller is a UINavigationController; the UINavigationController’s view, which is never seen in isolation, is the window’s sole immediate subview (the root view), and the navigation bar is a subview of that view. The UINavigationController contains a second UIViewController — a parent–child relationship. The child is a custom UIViewController subclass; its view is what occupies the rest of the window, as another subview of the UINavigationController’s view. That view contains the UILabel and the UITableView as subviews. This architecture means that when the user taps a story listing in the UITableView, the whole label-and-table complex will slide out, to be replaced by the view of a different UIViewController, while the navigation bar stays.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.